NoInternetDialog

fun NoInternetDialog(_: Nothing = nothing, modifier: Modifier = Modifier, icon: @Composable () -> Unit? = { Icon(imageVector = IconPack.WifiCancel, contentDescription = null) }, title: @Composable () -> Unit? = { Text(text = stringResource(R.string.ly_img_editor_dialog_no_internet_title)) }, text: @Composable () -> Unit? = { Text(text = stringResource(R.string.ly_img_editor_dialog_no_internet_text)) }, confirmButton: @Composable () -> Unit = { TextButton( onClick = { showLoading = false editorContext.eventHandler.send(EditorEvent.CloseEditor(EditorException(EditorException.Code.NO_INTERNET))) }, ) { Text(stringResource(R.string.ly_img_editor_dialog_no_internet_button_confirm)) } }, dismissButton: @Composable () -> Unit? = null, onDismissRequest: () -> Unit = {}, properties: DialogProperties = DialogProperties(dismissOnBackPress = false, dismissOnClickOutside = false), __: Nothing = nothing)

A helper composable function for displaying a dialog when there is not internet.

Parameters

modifier

the modifier to apply to the dialog.

icon

the icon to display in the dialog.

title

the title of the dialog.

text

the text of the dialog.

confirmButton

the confirm button of the dialog.

dismissButton

the dismiss button of the dialog.

onDismissRequest

executes when the user tries to dismiss the dialog.

properties

the properties of the dialog.